package org.good.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GoodController {

    /**
     * 查询商品信息
     *
     * @param code
     * @return
     */
    @GetMapping("/good/{code}")
    public String queryGood(@PathVariable String code) {
        return "商品信息" + code;
    }
}
